import { Injectable } from '@angular/core';
import { BaseHttpService } from './base-http.service';
import { Observable } from 'rxjs/internal/Observable';

@Injectable({
	providedIn: 'root'
})
export class SelfService {
	private readonly COMM_URL = `/user`;
	constructor(private http: BaseHttpService) { }

  getMyAddTask(page, size): Observable<any> {
    return this.http.get(`${this.COMM_URL}/getMyAddTask?page=${page}&size=${size}`);
  }

  getMyFinishTask(page, size): Observable<any> {
    return this.http.get(`${this.COMM_URL}/myFinishTasks?page=${page}&size=${size}`);
  }
}
